package cn.edu.ujn.ch11.control;

import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class HelloController {
	@RequestMapping("/hello")
	public String sayHello(Model model) {
		model.addAttribute("msg", "This is my first springmvc with parameter!！！");
		return "ok";//this is a view.
	}
}
